import { configureStore } from "@reduxjs/toolkit";
import count from "./features/count";
import movie from "./features/movie";
import course from "./features/course";
import user from "./features/user";
const store = configureStore({
  reducer: {
    count,
    movie,
    course,
    user,
  },
});
export default store;

export type RootState = ReturnType<typeof store.getState>; //获取状态机数据类型
export type AppDispatch = typeof store.dispatch; //获取dispatch方法的类型
